
export function uiHp() {
    setInterval(() => {
        world.querySelectorAll("player").forEach((e)=>{
            remoteChannel.sendClientEvent(e, {
                type: "hp",
                data: {
                    hp:e.hp,
                    maxHp:e.maxHp,
                }
            })
        })
    }, 100)
}

export function showTaskUI(entity:GamePlayerEntity,text:string,type:0|1|2){
    remoteChannel.sendClientEvent(entity,{
        type:'task',
        data:{
            text:text,
            type:type,
        }
    })
}